using Core;

namespace DoItNow.Features
{
	public class NextCamelCaseWordFeature : BindableCommandFeature
	{
        public NextCamelCaseWordFeature(Ide ide, OutputPane outputPane)
			: base("Next Camel Case Word", "Text Editor::ctrl+alt+right arrow", ide, outputPane)
		{
		}

		public override bool IsAvailable
		{
			get { return Ide.ActiveDocument == null ? false : true; }
		}

		public override void OnExecute()
		{
			Ide.ActiveDocument.GotoNextCamelCaseWord(false);
		}
	}
}